<?php

include_once ("mysql_conn.php");
$addr = ($_POST['addr'] == NULL) ? '' : $_POST['addr'];
$phone = ($_POST['phone'] == NULL) ? '' : $_POST['phone'];
$name = ($_POST['name'] == NULL) ? '' : $_POST['name'];
$id = ($_POST['id'] == NULL) ? '' : $_POST['id'];
$conn = new mysql_conn();
$conn->add_upadate("update `user` set `name`='".$name."' , phone='".$phone."', addr='".$addr."'   where id =".$id.";");
echo "<script>alert('修改成功成功!');window.location='homeCustomer.php';</script>";
?>